package com.example.doctorstation.Service;

import com.example.doctorstation.POJOData.UserRole;
import com.example.doctorstation.POJOMapper.RoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Victoria-Al
 * @date 2021-05-06
 * 描述：
 **/
@Service
public class RoleServiceImpl {
    @Resource
    private RoleMapper roleMapper;

    public List<UserRole> findByUserId(int userId) {
        return roleMapper.findByUserId(userId);
    }
}
